Skip to content

Feature: Convert a pasted URL to its host in host inputs - #3759

Merged
mergify[bot] merged 6 commits into
mainfrom
feature/host-input-url-paste
Nov 29, 2026
Merged

mergify[bot] merged 6 commits into
mainfrom
feature/host-input-url-paste

Conversation

@BornToBeRoot

Copy link
Copy Markdown
Owner

A URL pasted or dropped into a host input (tools, connect dialogs, profiles, groups, hosts file entries, latency targets) becomes its host, e.g. https://borntoberoot.net/docs -> borntoberoot.net.

  • InputConverter (Utilities): multiline to ";" and URL to host helpers
  • PasteBehavior replaces ComboBoxPasteBehavior: DataObject.Pasting, ComboBox and TextBox (undo, drag & drop, read-only kept)
  • Run command: commands that take a host convert a URL target (RunCommandDefinition.TargetIsHost); a URL also suggests the host tools
  • Whois: a subdomain is queried as its registered domain (Public Suffix List, like RDAP)
  • Docs and changelog

Description

Related issue

#3609

Type of change

  • 🐛 Bug fix
  • ✨ New feature / improvement
  • 📖 Documentation / website
  • 🧹 Refactoring / maintenance (no functional change)

A URL pasted or dropped into a host input (tools, connect dialogs,
profiles, groups, hosts file entries, latency targets) becomes its host,
e.g. https://borntoberoot.net/docs -> borntoberoot.net.

- InputConverter (Utilities): multiline to ";" and URL to host helpers
- PasteBehavior replaces ComboBoxPasteBehavior: DataObject.Pasting,
  ComboBox and TextBox (undo, drag & drop, read-only kept)
- Run command: commands that take a host convert a URL target
  (RunCommandDefinition.TargetIsHost); a URL also suggests the host tools
- Whois: a subdomain is queried as its registered domain (Public Suffix
  List, like RDAP)
- Docs and changelog

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 29, 2026 19:54
@github-actions github-actions Bot added this to the next-release milestone Nov 29, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@mergify

mergify Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

agent and others added 5 commits November 29, 2026 21:01
- A ";" in the path or query of a URL belongs to the URL (e.g.
  ";jsessionid=1"), unless a new URL follows; line breaks end a URL
- Paste: an unreadable clipboard falls back to the default paste
- Run command: a URL suggests the Web Console and the tools of the kind
  of its host (no public-host tools for a host without a domain)
- Whois.GetQueryDomain with tests, server list loaded on first use
- Changelog: link #3759

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A part after a URL with a path that can be a host entry (10.0.0.1,
  server-01, 10.0.0.0/24, !10.0.0.1) is an entry of its own; only e.g.
  ";jsessionid=1" belongs to the URL
- Shared UrlConversion (None / Host / RDAPQuery) for the paste behavior
  (PasteBehavior.ConvertUrls) and the run command
  (RunCommandDefinition.TargetUrlConversion)
- RDAP: a pasted RDAP link becomes its query (e.g. .../ip/1.1.1.1)
- InputConverter: why it is in Utilities

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- What follows a URL with a path belongs to it until the next URL: a
  link is pasted as one entry (e.g. from a browser)
- RDAP: only links of an RDAP service ("rdap" in host or path) become
  their query, other links their host
- Whois: an IP address (e.g. inherited profile host) is kept
- Profile dialog: multiline paste for the IP Scanner, Port Scanner and
  Ping Monitor host

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The request was to get the host of a pasted link; RDAP API links are
not that use case. RDAP converts a URL to its host like every other
input, which also removes the substring check of the review.

- Removed UrlConversion and InputConverter.TryGetRDAPQueryFromUrl
- PasteBehavior.ConvertUrlsToHosts (bool), RunCommandDefinition.TargetIsHost
- Docs / changelog without the RDAP link examples

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A host taken from a URL loses the trailing dot of a fully qualified name
- Whois: only complete IPv4 / IPv6 addresses are kept as they are
  (IPAddress.TryParse also accepts "1.2" or "10")
- AGENTS.md: helpers used by NETworkManager.Controls go to Utilities

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mergify
mergify Bot merged commit a9293d4 into main Nov 29, 2026
5 checks passed
@mergify
mergify Bot deleted the feature/host-input-url-paste branch November 29, 2026 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants